aboutsummaryrefslogtreecommitdiffstats
path: root/emacs-d-mode [disowned]
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-07 06:15:01 +0200
committerMattias Andrée <maandree@kth.se>2016-07-07 06:15:01 +0200
commit8f1eff6b221a2e01385d314a55b6c96c949ce68c (patch)
treea8546c67b158ff79c7b93278ea2bfe4a6289136e /emacs-d-mode [disowned]
parentupdate emacs-d-mode (diff)
downloadaur-packages-8f1eff6b221a2e01385d314a55b6c96c949ce68c.tar.gz
aur-packages-8f1eff6b221a2e01385d314a55b6c96c949ce68c.tar.bz2
aur-packages-8f1eff6b221a2e01385d314a55b6c96c949ce68c.tar.xz
Disowned emacs-d-mode
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'emacs-d-mode [disowned]')
-rw-r--r--emacs-d-mode [disowned]/PKGBUILD32
-rw-r--r--emacs-d-mode [disowned]/emacs-d-mode.install16
l---------emacs-d-mode [disowned]/upload1
-rwxr-xr-xemacs-d-mode [disowned]/watch21
4 files changed, 70 insertions, 0 deletions
diff --git a/emacs-d-mode [disowned]/PKGBUILD b/emacs-d-mode [disowned]/PKGBUILD
new file mode 100644
index 0000000..44dab27
--- /dev/null
+++ b/emacs-d-mode [disowned]/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+# Contributor: Gianni Vialetto <gianni@rootcube.net>
+# Contributor: Gour <gour@atmarama.net>
+
+pkgname=emacs-d-mode
+pkgver=2.0.8
+pkgrel=1
+pkgdesc="Emacs major mode for the D programming language"
+url="http://www.wikiservice.at/d/wiki.cgi?EditorSupport/EmacsEditor"
+arch=('any')
+license=('GPL2')
+depends=()
+makedepends=(emacs)
+install=$pkgname.install
+source=(https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/archive/$pkgver.tar.gz)
+sha256sums=('80ab7e82ebbb6afe4c7d9ab8e4feb597d2f84bd91739ac04120954594a7cd74e')
+
+
+build() {
+ cd "$srcdir/Emacs-D-Mode-$pkgver"
+
+ make compile
+}
+
+package() {
+ cd "$srcdir/Emacs-D-Mode-$pkgver"
+
+ install -m755 -d "$pkgdir/usr/share/emacs/site-lisp"
+ install -m644 d-mode.el "$pkgdir/usr/share/emacs/site-lisp"
+ install -m644 d-mode.elc "$pkgdir/usr/share/emacs/site-lisp"
+}
+
diff --git a/emacs-d-mode [disowned]/emacs-d-mode.install b/emacs-d-mode [disowned]/emacs-d-mode.install
new file mode 100644
index 0000000..a7f8c2f
--- /dev/null
+++ b/emacs-d-mode [disowned]/emacs-d-mode.install
@@ -0,0 +1,16 @@
+post_install() {
+ cat << EOF
+==> To set up Emacs to automatically edit files ending in .d[i] using D-mode
+==> add the following to your ~/.emacs file (GNU Emacs) or ~/.xemacs/init.el
+==> file (XEmacs):
+
+ (autoload 'd-mode "d-mode" "Major mode for editing D code." t)
+ (add-to-list 'auto-mode-alist '("\\\.d[i]?\\\'" . d-mode))
+
+EOF
+}
+
+post_upgrade() {
+ post_install $1
+}
+
diff --git a/emacs-d-mode [disowned]/upload b/emacs-d-mode [disowned]/upload
new file mode 120000
index 0000000..1e7a8be
--- /dev/null
+++ b/emacs-d-mode [disowned]/upload
@@ -0,0 +1 @@
+../upload \ No newline at end of file
diff --git a/emacs-d-mode [disowned]/watch b/emacs-d-mode [disowned]/watch
new file mode 100755
index 0000000..610a94f
--- /dev/null
+++ b/emacs-d-mode [disowned]/watch
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ -f release ] && rm release
+
+wget https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/tags -O - 2>/dev/null | grep tag-name | grep -Po '>.+</' > release
+
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum release > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'emacs-d-mode'
+ fi
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'emacs-d-mode (unfetchable)'
+fi
+